//
//  RoomList.h
//  Maze
//
//  Created by Lin Tian on 9/13/11.
//  Copyright 2011 tina. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Room.h"
#import "PackageParser.h"
#import "GameDefine.h"
#import "SlidingMenuGrid.h"

@interface RoomList : CCLayer {
    CCLabelTTF *tempLable;
    NSMutableArray *_roomPool;
    SlidingMenuGrid *menuGrid;
    int previousCount;
}

+(CCScene*) sceneWithRoomList:(NSMutableArray*)roomList;
-(id)initWithRoomList:(NSMutableArray*)roomList;
-(void)setupMenu;
-(void)transit:(CCMenuItem*)sender;
-(void)addRoom:(Room*)aRoom;
-(void)updateRoomList:(ccTime) dt;
@property (nonatomic, retain) CCLabelTTF *tempLabel;
@property (nonatomic, retain) NSMutableArray* roomPool;
@property (nonatomic, retain) SlidingMenuGrid* menuGrid;
@property (nonatomic, readwrite) int previousCount;
@end
